package com.wm.blog_admin.controller.resp;

import com.wm.blog_common.util.excel.ExcelCodeToString;
import com.wm.blog_common.util.excel.ExcelField;
import lombok.Data;

import java.util.Date;

/**
 * @author 半卷流年
 * @date 2020-5-8 13:43
 */
@Data
public class AdminExportResp {

    /**
     * 头像
     */
    @ExcelField(name = "头像",isImage = true,downloadType = 2)
    private String avatar;

    @ExcelField(name = "账号")
    private String userName;

    @ExcelField(name = "手机")
    private String mobile;

    @ExcelField(name = "邮箱")
    private String email;

    @ExcelField(name = "简介")
    private String summary;

    @ExcelField(name = "是否禁用")
    @ExcelCodeToString(values = {"0:禁用","1:未禁用"})
    private Integer status;

    @ExcelField(name = "生日")
    private Date birthday;

    @ExcelField(name = "创建时间")
    private Date createTime;

    @ExcelField(name = "修改时间")
    private Date updateTime;


}
